home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (4th Edition)
/
The Business Master - 4th Edition.iso
/
files
/
grapties
/
mmmaker2
/
mmm20b.exe
/
EXAMPLE5.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-01-01
|
3KB
|
139 lines
@echo off
: EDUCATIONAL EXAMPLE WITH TEXT ON GRAPHIC
cls
echo.
echo.
echo Welcome to the interactive talking test
echo.
echo.
echo Please enter your name:
name
echo.
echo Todays date:
name
echo.
echo Your class #:
name
SAY-SB THANKYOU.VOC
if errorlevel 1 say thankyou.pc
echo.
echo.
echo The test results will be stored in the ANSWER.TXT file.
delay-kb 4
:review
show-pcx JUPITER.pcx SLIDE
gtext " JUPITER - Largest planet in our" 1 0 16 200
gtext " ~~~~~~~ solar system." 2 0 16 200
say-sb jupiter.voc
if errorlevel 1 say jupiter.pc
gtext "JUPITER TAKES ALMOST" 8 20 8 160
gtext "12 YEARS TO REVOLVE" 9 20 8 160
gtext "AROUND THE SUN." 10 20 8 160
gtext "The most notable " 12 20 8 160
gtext "marking on Jupiter" 13 20 8 160
gtext "is a large, oval" 14 20 8 160
gtext "spot, the so-called" 15 20 8 160
gtext "Great Red Spot," 16 20 8 160
gtext "which is 7,000 " 17 20 8 160
gtext "miles wide and" 18 20 8 160
gtext "25,000 miles long." 19 20 8 160
gtext "This spot is a" 21 20 8 160
gtext "drifting storm." 22 20 8 160
gtext " *WOW*" 23 20 8 160
delay-kb 4
GTEXT "»»»════════»" 17 1 8 207 260
delay-kb 6
clear jupiter.pcx weave slow
: QUESTION EXAMPLE
show-pcx jupiter.pcx blind R
gtext "How long does Jupiter take" 1 5 16 180
gtext "to revolve around the Sun ?" 2 5 16 180
gtext "1 - 1 year" 5 21 14 200
gtext "2 - Almost 6 years" 6 21 14 200
gtext "3 - Almost 12 years" 7 21 14 200
gtext "4 - 22 years" 8 21 14 200
gtext "Please enter 1-4 ?" 9 21 16 180
KEY 1234
IF ERRORLEVEL 4 GOTO NO
IF ERRORLEVEL 3 GOTO YES
IF ERRORLEVEL 2 GOTO NO
IF ERRORLEVEL 1 GOTO NO
:YES
gtext "3 - Almost 12 years" 7 21 14 100
gtext "EXCELLENT" 11 21 16 100
SAY-SB EXCELLEN.VOC
if errorlevel 1 say excellen.pc
SAY-SB CLAP.VOC
store 1_right
clear jupiter.pcx RANDOM
GOTO NEXT1
:NO
SAY-SB sfx5.voc
if errorlevel 1 say sfx5.pc
gtext "ALMOST" 10 21 16 200
SAY-SB ALMOST.VOC
if errorlevel 1 say almost.pc
gtext "Lets review it again." 11 10 16 200
store 1_wrong
delay 2
clear jupiter.pcx CRUSH r
goto review
:NEXT1
show-pcx jupiter.pcx slide
gtext "The spot on jupiter" 1 5 16 180
gtext "is called ?" 2 5 16 180
gtext "1 - The Great Eye" 5 21 14 200
gtext "2 - The Great Red" 6 21 14 200
gtext " Spot" 7 21 14 200
gtext "3 - The Great Storm" 8 21 14 200
gtext "4 - The Red Eye" 9 21 14 200
GTEXT "»»»════════»" 17 1 8 207 260
delay
GTEXT "»»»════════»" 17 1 8 107 260
delay
GTEXT "»»»════════»" 17 1 8 207 260
gtext "Please enter 1-4 ?" 9 21 16 180
KEY 1234
IF ERRORLEVEL 4 GOTO NO1
IF ERRORLEVEL 3 GOTO NO1
IF ERRORLEVEL 2 GOTO YES1
IF ERRORLEVEL 1 GOTO NO1
:YES1
gtext "2 - The Great Red" 6 21 14 100
gtext " Spot" 7 21 14 100
gtext "EXCELLENT" 11 21 16 100
SAY-SB EXCELLEN.VOC
if errorlevel 1 say excellen.pc
play-cmf intro.cmf
store 2_right
clear jupiter.pcx crush slow
GOTO EXIT:
:NO1
SAY-SB sfx5.voc
if errorlevel 1 say sfx5.pc
gtext "ALMOST" 10 21 16 200
SAY-SB ALMOST.VOC
if errorlevel 1 say almost.pc
gtext "Lets review it again." 11 10 16 200
delay 2
store 2_wrong
clear jupiter.pcx SPIRAL R
goto review
:EXIT
rem cleanup
store ----------------------